package com.yuelan.order.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @description:
 * @Author: ZhaoYi
 * @date: 24-7-5 0:30
 */
@TableName("apa_rent_bill")
@Data
public class RentBill implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    @TableField("cycle")
    private Integer cycle;

    @TableField("apartment_id")
    private Long apartmentId;

    @TableField("room_id")
    private String roomId;

    @TableField("tenant_id")
    private Long tenantId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("collection_time")
    private Date collectionTime;

    @TableField("amount")
    private BigDecimal amount;

    @TableField("payment_type")
    private String paymentType;

    /**
     * 参数类型：'Collected','Uncollected','Overdue'
     */
    @TableField("status")
    private String status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    /**
     * 1 # 逻辑已删除值
     * 0 # 逻辑未删除值
     */
    @TableLogic
    private Integer deleted;


}
